package com.hm.base.service;

import java.util.List;

import com.hm.base.def.ScheduleJobStatusEnum;
import com.hm.base.su.BaseConfig;
import com.hm.base.vo.ScheduleJobVo;
import com.hm.common.su.bean.PageInfo;
import com.hm.common.su.bean.PageInfo.PageParam;

/**
 * @author shishun.wang
 * @date 下午3:32:45 2017年8月24日
 * @version 1.0
 * @describe
 */
public interface ScheduleJobService {

	public String HTTP_INVOKER_EXPORT_CONTEXT = "/HttpInvokerEndpoing/base/ScheduleJobService/"
			+ BaseConfig.HttpInvokerEndpoing.VERSION;

	public void addScheduleJob(ScheduleJobVo scheduleJobVo);

	public void updateScheduleJob(Long scheduleJobId, ScheduleJobVo scheduleJobVo);

	public void updateScheduleJobStatus(Long scheduleJobId, ScheduleJobStatusEnum scheduleJobStatus);

	public void deleteScheduleJob(List<Long> scheduleJobIds);
	
	public void realTimeScheduleJob(Long scheduleJobId);

	public ScheduleJobVo getScheduleJob(Long scheduleJobId);

	public PageInfo<ScheduleJobVo> query(PageParam pageParam, String jobGroup, ScheduleJobStatusEnum scheduleJobStatus);
}
